﻿@{
    Layout = null;
}

@model RightVM
<div class="rbox">
    @if (Model.IsIndex)
    {
        <div class="card">
            <h2>我的名片</h2>
            <p>网名：realyrare</p>
            <p>职业：程序员</p>
            <p>现居：浙江省-杭州市</p>
            <p>Email：dancesmiling@qq.com</p>
            <ul class="linkmore">
                <li><a href="/" target="_blank" class="iconfont icon-zhuye" title="网站地址"></a></li>
                <li><a href="http://mail.qq.com/cgi-bin/qm_share?t=qm_mailme&amp;email=1248415209@qq.com" target="_blank" class="iconfont icon-youxiang" title="我的邮箱"></a></li>
                <li><a href="http://wpa.qq.com/msgrd?v=3&amp;uin=1248415209&amp;site=qq&amp;menu=yes" target="_blank" class="iconfont icon---" title="QQ联系我"></a></li>
                <li id="weixin"><a href="http://www.52huochong.com/#" target="_blank" class="iconfont icon-weixin" title="关注我的微信"></a><i><img src="/image/mywx.jpg"></i></li>
            </ul>
        </div>
    }
    <div class="whitebg paihang">
        <h2 class="htitle">点击排行</h2>
        <ul>
            @foreach (var item in Model?.MonthArticle)
            {
                string detailUrl = domainConfig.CurrentValue.Host;
                @if (string.IsNullOrEmpty(item.ParentColumnUrl))
                {
                    detailUrl += $"/{item.EnTitle}/{item.Id}.html";
                }
                else
                {
                    detailUrl += $"/{item.ParentColumnUrl}/{item.EnTitle}/{item.Id}.html";
                }
                <li><i></i><a href="@detailUrl" title="@item.Title">@item.Title</a></li>
            }
        </ul>
    </div>
    <div class="whitebg notice">
        <h2 class="htitle">当前栏目推荐</h2>
        <ul>
            @foreach (var item in Model?.CurrentSpellArticle)
            {
                string detailUrl = domainConfig.CurrentValue.Host;
                @if (string.IsNullOrEmpty(item.ParentColumnUrl))
                {
                    detailUrl += $"/{item.EnTitle}/{item.Id}.html";
                }
                else
                {
                    detailUrl += $"/{item.ParentColumnUrl}/{item.EnTitle}/{item.Id}.html";
                }
                <li><a href="@detailUrl" title="@item.Title" target="_blank">@item.Title</a></li>
            }

        </ul>
    </div>
    <div class="whitebg cloud">
        <h2 class="htitle">标签云</h2>
        <ul>
            @foreach (var item in Model?.AllTags)
            {
                if (!string.IsNullOrEmpty(item)&&item.Length<=20)
                {
                    var tags = item.Replace('，',',').Split(',');
                    for (int i = 0; i < tags.Length; i++)
                    {
                        <a target="_blank" href="@domainConfig.CurrentValue.Host@Url.Action("Search", "Home", new { keyword=tags[i] })" title="@tags[i]">@tags[i]</a>
                    }
                }
            }
        </ul>
    </div>
    <div class="whitebg tongji">
        <h2 class="htitle">站点信息</h2>
        <ul>
            <li><b>建站时间</b>：2018-12-24</li>
            <li><b>网站程序</b>：asp.net core</li>
            <li><b>微信公众号</b>：扫描二维码，关注我们</li>
            <li class="tongji_gzh"><a href="@domainConfig.CurrentValue.Host"><img src="/image/wxhuochong.jpg"></a></li>
        </ul>
    </div>
    
</div>